package com.sugar.psych.assessment.module.business.controller.admin.userpointsrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户积分记录新增/修改 Request VO")
@Data
public class UserPointsRecordSaveReqVO {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "32035")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "积分变动分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "积分变动分类不能为空")
    private String cls;

    @Schema(description = "变动类型（0减 1增）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "变动类型（0减 1增）不能为空")
    private Boolean type;

    @Schema(description = "积分变动数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "积分变动数量不能为空")
    private Integer obtainedPoints;
}